<legend>Administration</legend>
<table class="table">

  <thead>
    <tr>
      
      <th>First Name</th>
      <th>Last Name</th>
      <th>E-mail</th>
      <th>Authority</th>
      <th>Status</th>
      <th>Actions</th>
    </tr>
  </thead>
  <tbody>
  <?php foreach ($admins as $a):?>
    <tr>
     
      <td><?=$a->firstname?></td>
      <td><?=$a->lastname?></td>
      <td><?=$a->email?></td>
      <td><?=$a->role?></td>
      <td><?php if($a->status == 1 ){?><span class="label label-success">Active</span><?php }else{?><span class="label label-important">Blocked</span><?php }?></td>
      <td><div class="btn-group">
  <a class="btn dropdown-toggle btn-small" data-toggle="dropdown" href="#">
    Actions
    <span class="caret"></span>
  </a>
  <ul class="dropdown-menu">
    <li><a href="<?=site_url('preference/administration/edit/'.$a->id)?>"><i class="icon-pencil"></i> Edit</a></li>
    <li><a href="#"><i class="icon-remove"></i> Delete</a></li>
  </ul>
</div></td>
    </tr>
    <?php endforeach;?>
  </tbody>
</table>
<div class="alert alert-error">
			<button type="button" class="close" data-dismiss="alert">&times;</button>
			<?=isset($error_msg)? '<li class="error">'.$error_msg.'</li>':'';?>
		</div>
		
		